import {myFetch} from '@/assets/js/utils.js'
const env = process.env.NODE_ENV

export default{
	async getMembers(rank = 2){
		const r = await myFetch({
			name: 'shopping.sys.wx.members',
			rank
		})
		return r
	},
	async getUpper(){
		const r = await myFetch({
			name: 'shopping.sys.wx.getupper'
		})
		return r
	},
	async changeUpper(code){
		const r = await myFetch({
			name:'shopping.sys.wx.bindupper',
			code
		})
		return r
	},
	// 获取入会商品
	async getMembershipGoods(){
		const r = await myFetch({
			name:'shopping.sys.vipgoods'
		})
		return r
	},
}